
<div class="layui-form">


<a class="layui-btn" href="../member/detail-add.php?nav-itemed=<?echo $system_part?>&nid=<?echo $detail['nid']?>">新增人员</a>

<table class="layui-table">
  <colgroup>

	<col >
	<col >
	<col >
	<col >
	<col >


  </colgroup>
  <thead>
    <tr>
      <th>序号</th>
      <th>姓名</th>
      <th>电话</th>
      <th>关系</th>
      <th>介绍人</th>
      <th>好感度</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>




 <? $member= select_lines_all_items($table_Prefix."member","nid desc","unit ='".$detail['nid']."'","") ;?>


 <?for($iix=0;$iix<count($member);$iix++){?>
      <tr>
      <td><?echo $iix+1 ?></td>
      <td><?echo $member[$iix]['name']?></td>
      <td><?echo $member[$iix]['phone']?></td>
      <td><?echo $member[$iix]['relation']?></td>
      <td><?echo $member[$iix]['agent']?></td>
      <td><?echo $member[$iix]['favourable']?></td>
	  <td>


          <a href="../member/detail-statistic.php?nav-itemed=<?echo $system_part?>&nid=<? echo $member[$iix]['nid']?>" class="layui-btn layui-btn-primary layui-btn-small" >
              <i class="layui-icon">&#xe642;</i>修改
          </a>


          <!--
          <a href="javascript:void(0)" onclick="member_popupBox(<?php echo $member[$iix]['nid']?>)" class="delete layui-btn layui-btn-primary layui-btn-small" > <i class="layui-icon">&#xe640;</i> 删除 </a>
          -->
      </td>
    </tr>
<?;}?>




  </tbody>
</table>

 </div>







<script>
    function member_popupBox(nid){
        document.getElementById('delete-box').style.display='block';
        document.getElementById("sure_btn").innerHTML = "<a href="+nid+"'../../exam/detail-delete.php?nid='>确认</a>";

    };
    function member_closePopup(){
        document.getElementById('delete-box').style.display='none';
    }
</script>


<div class="delete-box" id="delete-box">
    <div class="delete-box-1" id="delete-box-1" onclick="closePopup()"></div>
    <div class="delete-box-2">
        <div class="delete-box-header"></div>
        <p>是否确认删除数据？</p>
        <ul>
            <li id="sure_btn"></li>
            <li><a href="javascript:void(0)" onclick="member_closePopup()">取消</a></li>
        </ul>
    </div>
</div>
